package com.financing.platform.service.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.financing.platform.dao.IRecommentProductDao;
import com.financing.platform.dto.RecommentProductDTO;
import com.financing.platform.service.IRecommentProductService;

@Repository("recommentProductServiceImpl")
public class RecommentProductServiceImpl extends BaseServiceImpl implements IRecommentProductService {

	@Autowired
	IRecommentProductDao recommentProductDao;
	
	@Override
	public int addRecommentProduct(RecommentProductDTO recommentProduct)
			throws SQLException {
		return recommentProductDao.addRecommentProduct(recommentProduct);
	}

	@Override
	public int deleteRecommentProduct(RecommentProductDTO recommentProduct)
			throws SQLException {
		return recommentProductDao.deleteRecommentProduct(recommentProduct);
	}

	@Override
	public List<Map<String, String>> queryRecommentProduct(
			RecommentProductDTO recommentProduct) throws SQLException {
		return recommentProductDao.queryRecommentProduct(recommentProduct);
	}

	@Override
	public int queryRecommentProductCount(RecommentProductDTO recommentProduct)
			throws SQLException {
		return recommentProductDao.queryRecommentProductCount(recommentProduct);
	}


}
